package org.luxor.commons.mqtt.config.properties;


import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 客户端配置
 *
 * @author Mr.yan @date 2023/8/22
 */
@ConfigurationProperties(prefix = MqttClientProperties.PREFIX)
public class MqttClientProperties {
    public static final String PREFIX = "spring.mqtt";

    /**
     * 启用?
     */
    private boolean enabled;

    /**
     * 客户端id
     */
    private String clientId;

    /**
     * 服务端地址
     */
    private String serverUri;

    /**
     * 用户账号
     */
    private String username;

    /**
     * 用户密码
     */
    private String password;

    public MqttClientProperties() {
        this.enabled = true;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getServerUri() {
        return serverUri;
    }

    public void setServerUri(String serverUri) {
        this.serverUri = serverUri;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

}
